<div>
    <button type="button" class="close" data-dismiss="modal" ng-click="cancel()" aria-label="Close"><span aria-hidden="true"class="closeBtn">&times;</span></button>
    <br/>
</div>
<div class="popup_box" style="overflow: hidden">
    <h3>角色分配</h3>
    <hr>
    <form class="form-horizontal">
        <div class="form-group col-sm-12" >
            <label class="control-label col-sm-2">当前角色：</label>
            <div class="col-sm-10" style="text-align: left;padding-top: 5px">
                <span ng-repeat="role in userRoles">{{role.title}} <i class="glyphicon glyphicon-remove-circle" ng-click="deleteUserRole(role)"></i>  </span>
            </div>
        </div>
        <div class="form-group col-sm-12" style="float: left">
            <label class="control-label col-sm-2">选择角色：</label>
            <div class="col-sm-10" >
                <select class="form-control"style="width: 400px;float: left" ng-model="checkRole" >
                    <option value="{{item.code}}" ng-repeat="item in roleList">{{item.title}}</option>
                </select>
                <button type="button" class="btn btn-primary btn_add" style="float: left;margin-left: 20px"  ng-click="submitUserRole()">确认</button>
            </div>
        </div>
    </form>
    <div class="form-group col-sm-12 button_box table_btn_box editor_btn_box ">
        <button type="button" class="btn btn-primary back" ng-click="cancel()" >取消</button>
    </div>
</div>